<script src="{$site_public}tpl/zanpianadmin/libs/ckeditor/ckeditor.js"></script>
<div class="role-ajax">
  <h2>{notempty name="info.role_id"}编辑角色{$info.role_name}{else /}添加角色{/notempty}</h2>
  <form class="user-form" action="{:zanpian_user_url('user/center/addrole')}">
    <input type="hidden" id="role_id" name="role_id" value="{$info['role_id']|default=''}">
    <div class="user-input">
      <label>视频名：</label>
      <input class="form-control" name="vod_name" id="vod_name" type="text" placeholder="视频名" value="{$info.vod_name|default=''}" readonly>
    </div>
    <div class="user-input">
      <label>视频ID：</label>
      <input class="form-control" name="role_vid" id="role_vid" type="text" placeholder="视频ID" value="{$info.vod_id|default=''}" readonly>
    </div>
    <div class="user-input">
      <label>角色名：</label>
      <input class="form-control txt" name="role_name" id="role_name" type="text" placeholder="角色名" value="{$info.role_name|default=''}">
    </div>
    <div class="user-input">
      <label>演员名：</label>
      <input class="form-control txt" name="role_star" id="role_star" type="text" placeholder="演员名" value="{$info.role_star|default=''}">
    </div>
    <div class="user-input">
      <label>图片地址：</label>
      <input class="form-control" id="role_pic" name="role_pic" type="text" value="{$info['role_pic']|default=''}">
    </div>
    <div class="user-input">
      <label>角色介绍：</label>
      <textarea class="form-control editor" name="role_content" placeholder="角色介绍" style=" width:100%; height:200px">{$info['role_content']}</textarea>
    </div>
    <div class="user-input user-validate">
      <label>验证码：</label>
      <input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
      <img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}">
    </div>
    <button type="submit" class="user-btn" id="add-part">提交</button>
  </form>
</div>
<script type="text/javascript"> 
  CKEDITOR.replace('editor', {
  toolbar: [
    { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
    { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
    { name: 'links', items: [ 'Link', 'Unlink'] },
    { name: 'paragraph', items: [ 'NumberedList', 'BulletedList'] },
    { name: 'document', items: [ 'Source' ] },
    { name: 'tools', items: [ 'Maximize' ] },
  ]
  });
</script>